package org.lzh.service;

import org.lzh.dao.UserDao;
import org.lzh.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginService {

    //注入dao
    @Autowired
    protected UserDao userDao;

    //登录
    public User login(String id, String password){

            return userDao.findByIdAndPassword(id,password);

    }



}
